#!/bin/bash
set -e
mkdir -p 14 15 16
for v in */; do
  v="${v%/}"
  sed "s/%VERSION%/$v/g" init_postgresql.template > "$v/init_postgresql.sh"
  chmod +x "$v/init_postgresql.sh"
done